package com.zf.springdoc.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zhou Feng
 */
@Tag(name = "问候")
@RestController
@RequestMapping("/hello")
public class HelloController {

    @Operation(summary = "欢迎")
    @GetMapping("/welcome")
    public String welcome() {
        return "hello world";
    }

}
